import { nanoid } from "nanoid"

export type TodoType = {
  id: string
  title: string
}

export type ActionType = {
  type: string
  payload?: any
}

// 初始化的todo list
const initialState: TodoType[] = [
  { id: nanoid(5), title: "吃饭" },
  { id: nanoid(5), title: "睡觉" },
]
